package Strategy;

import Strategy.base.Strategy;

// 类比公司人事
public class Context {
    //来一个部门可以写一个实现
    private Strategy strategy;

    public Context(Strategy strategy){
        this.strategy=strategy;
    }

    public int executeStrategy(int a,int b){
        return strategy.doOperation(a, b);
    }
}
